#include "stdafx.h"
#include "material.h"

Material * readMaterial() {
	vec3 ambientReflectivity;
	vec3 diffuseReflectivity;
	vec3 specularReflectivity;
	cout << "Please enter ambient component (RGB)" << endl;
	cin >> ambientReflectivity;
	cout << "Please enter diffuse component (RGB)" << endl;
	cin >> diffuseReflectivity;
	cout << "Please enter specular component (RGB)" << endl;
	cin >> specularReflectivity;
	cout << "Please enter specularity of the material" << endl;
	GLfloat spec;
	cin >> spec;
	return new Material(ambientReflectivity,diffuseReflectivity,specularReflectivity,spec);
}